/*
 * @Author: junliangliu junliangliu@linx-info.com
 * @Date: 2023-07-10 14:56:37
 * @LastEditors: junliangliu junliangliu@linx-info.com
 * @LastEditTime: 2023-08-01 11:10:24
 * @FilePath: /linux-net/my_mempool/1.c
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include <stdio.h>
#include <stdlib.h>

void myopen(void** p)
{
    int idx = 99;
    *p =(void *)99;
}

void myclose(void* p)
{
    int idx = (int)(unsigned long)p;
    printf("%d\n", idx);
}

int main(){
    // void *p = malloc(10);
    
    // printf("%p\n",p);
    // unsigned long  addr = (unsigned  long)p;
    // printf("%lx\n",addr);

    // void *q = (void *)addr;
    // printf("%p\n",q);
    // unsigned int m = 0x56789fff;
    // q = (void *)(unsigned long)m;
    // // q = (unsigned long)m;
    // printf("%p\n",q);
    void *handle;
    myopen(&handle);
    myclose(handle);
    
    return 0;
}